package org.tio.sitexxx.service.service.atom;

import org.slf4j.Logger;

import com.jfinal.kit.Ret;
import com.jfinal.plugin.activerecord.IAtom;

public abstract class AbsAtom implements IAtom {

	protected String msg;

	protected Byte result;

	protected Ret retObj;

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public void setErrMsg(String msg, Logger log) {
		this.msg = msg;
		log.error(msg);
	}

	public Byte getResult() {
		return result;
	}

	public void setResult(Byte result) {
		this.result = result;
	}

	public Ret getRetObj() {
		return retObj;
	}

	public void setRetObj(Ret retObj) {
		this.retObj = retObj;
	}
}
